﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserUpdate.aspx.cs" Inherits="YBApproval.Pages.UserUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户信息维护</title>
    <link href="/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="/css/typography.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css">
        .style1
        {
            height: 18px;
        }
    </style>
    <script src="/Scripts/jquery-1.9.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        function selectDelegate(obj) {
            var url = "SelectApprover.aspx?type=user";            
            btnObj = obj;
            var results = window.showModalDialog(url, "", "dialogWidth:400px;dialogHeight:250px;center:yes;help:no;resizable:no;status:no");
            if (results != null && results != undefined) {
                var resultArray = results.split("|||");
                $(btnObj).prev().val(resultArray[0]);
                $(btnObj).next().val(resultArray[1]);
            }
            else {
                //$(btnObj).prev().val("");
                //$(btnObj).next().val("");
            }
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" >    
        <div id="Div1" style="width:720px; margin:0px auto;">
                    <div class="mainContent">
                        <h1 id="H1">
                            <img id="titleIcon" class="pngfix" src="~/images/icon_findresources.png" runat="server" /><asp:Label
                                ID="ltlContentTitle" runat="server" Text="用户信息维护" style=" vertical-align:bottom;"/></h1>
                        <div class="ContentBlock">
                            <div id="topo">
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                    <tr>
                        <td style="background-image: url('../images/h1-bg.gif'); font-size: small;" align="center"
                            colspan="2">
                            <div  style="width:25px;height:19px;float:right; vertical-align:top;">
                                <asp:ImageButton runat=server ID=imbEditUser ImageUrl="~/images/FormEdit.gif" 
                                    ToolTip="编辑" onclick="imbEditUser_Click"/></div>
                            基本信息</td>
                    </tr><tr><td colspan=2 class="style1">
                            </td></tr>
                    <tr >
                        <td style="width: 20%; text-align: left" nowrap="nowrap">
                            &nbsp;<b><font color="#ff0000">*</font>姓名：</b>
                        </td>
                        <td style="width: 80%; text-align: left" nowrap="nowrap">&nbsp;<asp:Label ID="lblName" runat="server" /><asp:TextBox runat="server" ID="txtName" Enabled=false Visible=false />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%; text-align: left" nowrap="nowrap">
                            &nbsp;<b><font color="#ff0000">*</font>登陆名：</b>
                        </td>
                        <td style="width: 80%; text-align: left" >&nbsp;<asp:Label ID="lblLoginName" runat="server" /><asp:TextBox runat=server ID="txtLoginName" Visible=false />
                        </td>
                    </tr>
                    <tr >
                        <td style="width: 20%; text-align: left" nowrap="nowrap">
                            &nbsp;<b>电话：</b>
                        </td>
                        <td style="width: 80%; text-align: left" nowrap="nowrap" align="left">&nbsp;<asp:Label ID="lblPhone" runat="server" /><asp:TextBox runat="server" ID="txtPhone" Visible=false />
                        </td>
                    </tr> 
                    <tr>
                        <td style="width: 20%; text-align: left" nowrap="nowrap">
                            &nbsp;<b>手机：</b>
                        </td>
                        <td style="width: 80%; text-align: left" nowrap="nowrap">&nbsp;<asp:Label ID="lblMobile" runat="server" /><asp:TextBox runat="server" ID="txtMobile" Visible=false />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%; text-align: left" nowrap="nowrap">
                            &nbsp;<b>邮箱：</b>
                        </td>
                        <td style="width: 80%; text-align: left" nowrap="nowrap">&nbsp;<asp:Label ID="lblEmail" runat="server" /><asp:TextBox runat=server ID="txtEmail" Visible=false />
                            &nbsp;
                        </td>
                    </tr>
                    <tr >
                        <td style="width: 20%; text-align: left" nowrap="nowrap">
                            &nbsp;<b>代理人：</b>
                        </td>
                        <td style="width: 80%; text-align: left" nowrap="nowrap">&nbsp;<asp:Label ID="lblDelegate" runat="server" /><asp:TextBox runat="server" ID="txtDelegate" Visible="false" /><asp:Button Text="更改代理人" ID=btnDelegate runat="server" Visible="false" OnClientClick="selectDelegate(this)" /><asp:HiddenField runat="server" ID="txtDelegateId"/>
                            <asp:Button Text="清除代理人" ID=btnClearDelegate runat="server" Visible="false" 
                                onclick="btnClearDelegate_Click"/>
                        </td>
                    </tr><tr><td colspan=2 class="style1">
                            </td></tr>
                    <tr>
                        <td style="background-image: url('../images/h1-bg.gif'); font-size: small;" align="center"
                            colspan="2">                            
                            <div  style="width:25px;height:19px;float:right; vertical-align:top;">
                                <asp:ImageButton runat=server ID=imbRoleEdit ImageUrl="~/images/FormEdit.gif" 
                                    ToolTip="编辑" onclick="imbRoleEdit_Click"/></div>
                            用户组</td>
                    </tr><tr><td colspan=2 class="style1">
                           </td></tr>
                    <tr>
                        <td colspan="2" align=center><asp:CheckBoxList ID="cblRols" runat="server" Enabled=false RepeatColumns="2" >
                            </asp:CheckBoxList></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
                <div style=" text-align:center;">
                            <%--<asp:Button ID="btnSubmit" runat="server" Text="确定" style=" width:50px; height:20px" />--%>
                            <asp:Button ID="btnCancle" runat="server" Text="返回" 
                                style=" width:50px; height:20px" onclick="btnCancle_Click" /></div>
                            </div>
                        </div>
                    </div>
                </div>
                <asp:HiddenField ID="hfInfoStatus" runat=server />
                <asp:HiddenField ID="hfRoleSatus" runat=server />
    </form>
</body>
</html>
